<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            display: flex;
            height: 100vh;
            justify-content: center;
            align-items: center;
        }
        div{
            display: flex;
            flex-direction: column;

            justify-content: center;

            background-color: rgb(196, 243, 245);
            padding: 20px 60px;
            border-radius: 10px;

            box-shadow: 0px 0px 10px #000;
        }
        #btns{
            display: flex;
            justify-content: space-around;
            gap: 40px;
        }
    </style>
</head>

<body>

    <div>
        <p>商品：商品名称</p>
        <p>原价：10000CNY</p>
        <p>现价：10000JPY</p>
        <p>内容：null</p>
        <p id="btns">
            <button id="cancel">取消</button>
            <button id="pay">支付</button>
        </p>
    </div>

    <script>
        document.getElementById('pay').addEventListener('click',function(){
            let res = window.confirm('您确定要支付吗');
            if(res){
                location.href = './succ.html';
            }
        })
    </script>
</body>

</html>